import request from "@/config/axios/service";

export function AddEquip(data) {
  return request({
    url: "/AvpEquipment/Add",
    method: "post",
    data,
  });
}
export function updateEquip(data) {
  return request({
    url: "/AvpEquipment/Update",
    method: "put",
    data,
  });
}
export function delEquip(params) {
  return request({
    url: "/AvpEquipment/Delete",
    method: "delete",
    params,
  });
}
export function getEquip(params) {
  return request({
    url: "/AvpEquipment/GetPageList",
    method: "get",
    params,
  });
}
//工序
export function AddOperation(data) {
  return request({
    url: "/AvpOperation/Add",
    method: "post",
    data,
  });
}
export function updateOperation(data) {
  return request({
    url: "/AvpOperation/Update",
    method: "put",
    data,
  });
}
export function getOperation(params) {
  return request({
    url: "/AvpOperation/GetPageList",
    method: "get",
    params,
  });
}
//工站
export function AddStation(data) {
  return request({
    url: "/AvpStation/Add",
    method: "post",
    data,
  });
}
export function updateStation(data) {
  return request({
    url: "/AvpStation/Update",
    method: "put",
    data,
  });
}
export function getStation(params) {
  return request({
    url: "/AvpStation/GetPageList",
    method: "get",
    params,
  });
}
//工艺
export function AddProcess(data) {
  return request({
    url: "/AvpProcess/Add",
    method: "post",
    data,
  });
}
export function updateProcess(data) {
  return request({
    url: "/AvpProcess/Update",
    method: "put",
    data,
  });
}
export function getProcess(params) {
  return request({
    url: "/AvpProcess/GetPageList",
    method: "get",
    params,
  });
}
